package org.example.controller;

import io.swagger.annotations.Api;
import org.example.annotation.mySystemlog;
import org.example.domain.result.ResponseResult;
import org.example.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/link")
@Api(tags = "友链接口")
public class LinkController {
    @Autowired
    private LinkService linkService;

    @GetMapping("getAllLink")
    @mySystemlog(businessName = "获取友链列表")
    public ResponseResult getAllLink(){
        return linkService.getAllLink();
    }
}
